package com.ld.admin.model.oa;

import java.util.Date;

import com.ld.shieldsb.annotation.field.link.Link;
import com.ld.shieldsb.annotation.model.ModelAnno.Model;
import com.ld.shieldsb.annotation.model.ModelAnno.TableName;
import com.ld.shieldsb.common.web.model.BasicIdEntity;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

/**
 * 
 * 书籍借阅记录(oa_books_borrow_record)
 * 
 * @ClassName OaBooksBorrowRecordModel
 * @author <a href="mailto:donggongai@126.com" target="_blank">吕凯</a>
 * @date 2019年06月12日 11:50:12
 *
 */
@Model(name = "书籍借阅记录")
@TableName("oa_books_borrow_record")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class OaBooksBorrowRecordModel extends BasicIdEntity {
    private static final long serialVersionUID = 7584097297606512116L;

    /*书籍id，对应oa_books_manage主键*/
    private Long bookid;
    /*借阅人id*/
    private Long borrowerId;
    /*借阅人姓名*/
    private String borrowerName;
    /*借阅时间*/
    private Date borrowTime;
    /*归还时间*/
    private Date returnTime;
    /*创建人姓名*/
    private String createName;
    /*修改人姓名*/
    private String updateName;
    /*修改时间*/
    private Date updateTime;

    /* 借阅的图书 */
    @Link(field = "bookid")
    private OaBooksManageModel book;
}